<html>
  <head>
    <title>BGMail - Composer</title>
    <meta http-equiv="Content-Type"
          content="text/html; charset=utf-8">
    <script type="text/javascript" src="js/util.js"></script>
    <script type="text/javascript" src="js/composer.js"></script>
    <link rel="stylesheet" type="text/css" href="bgmail.css" />
  </head>

  <body onload="initComposer()">
    <!-- The title bar -->
    <div id="titleBar">
      <a href="/"><img src="logo.png" border="0"/></a>
    </div>

    
    <!-- The most basic one -->
    <div class="composer">
      <div id="composerTitle">Compose New Mail:</div>

      <form id="composeForm" action="/ui/sendmail/"
	    enctype="multipart/form-data" method="post">
	<table>
	  <tr>
	    <td>Subject:</td>
	    <td><input type="text" name="subject" size="80" /></td>
	  </tr>
	  <tr>
	    <td>To:</td>
	    <td><textarea name="to" rows="3" cols="80"></textarea></td>
	  </tr>
	  <tr>
	    <td>CC:</td>
	    <td><textarea name="cc" rows="3" cols="80"></textarea></td>
	  </tr>
	  <tr><td>Content:</td><td>
	      <textarea name="content" cols="80" rows="20"></textarea>
	  </td></tr>	  
	  <tr>
	    <td>Attach:</td>
	    <td><input type="file" name="attach.0" size="60"/></td>
	  </tr>
	  <tr>
	    <td/>
	    <td id="checkIsRefAttach" style="display : none">
	      <input type="checkbox" name="isrefattach"/>
	      Also add original attachment
	    </td>
	  <tr>
	    <td><input type="submit" value="Send Mail!" /></td>
	    <td/>	    
	  </tr>	    
	</table>
	<input type="hidden" name="replyto" value="" />
	<input type="hidden" name="refattach" value="" />
<!-- 	<table id="attachments"> -->
	    
<!-- 	</table> -->
<!-- 	<div> -->
<!-- 	  <a href="javascript:addAttachment()">Add Attachment</a> -->
<!-- 	</div> -->
	
      </form>
  </body>
</html>
